package com.sheep.pattern.chain;

/**
 * @author wangze
 * @date 2021-03-12 10:09.
 **/
public class MainClass {

	public static void main(String[] args) {
		Handler a=new HandleA();

		Handler b=new HandleB();
		Handler c=new HandleB();
		HandlerChain handlerChain=new HandlerChain();
		handlerChain.addHandler(a);
		handlerChain.addHandler(b);
		handlerChain.addHandler(c);
		handlerChain.handle();
	}
}
